import 'package:freezed_annotation/freezed_annotation.dart';

part 'sj_good_search_item_data.g.dart';

@JsonSerializable()
class SjGoodSearchItemData {
  final String? goodsId;
  final String? code;
  final String? icon;
  final String? type;
  final int? subType;
  final double? discount;
  final double? originalPrice;
  final double? price;
  final int? exchangeCoin;
  final int? originalExchangeCoin;
  final double? originalPriceRupee;
  final double? priceRupee;
  final double? localPaymentPriceRupee;
  final bool? isPromotion;
  final int? localPayOriginalPrice;
  final int? localPayPrice;
  final int? sortDesc;
  final int? validity;
  final String? validityUnit;
  final double? priceWeek;
  final double? priceRupeeWeek;
  final double? priceDay;
  final double? priceRupeeDay;
  final String? tags;
  SjGoodSearchItemData(
      {this.goodsId,
      this.code,
      this.icon,
      this.type,
      this.subType,
      this.discount,
      this.originalPrice,
      this.price,
      this.exchangeCoin,
      this.originalExchangeCoin,
      this.originalPriceRupee,
      this.priceRupee,
      this.localPayOriginalPrice,
      this.isPromotion,
      this.localPaymentPriceRupee,
      this.localPayPrice,
      this.tags,
      this.sortDesc,
      this.validity,
      this.validityUnit,
      this.priceWeek,
      this.priceRupeeWeek,
      this.priceDay,
      this.priceRupeeDay});

  factory SjGoodSearchItemData.fromJson(Map<String, dynamic> json) =>
      _$SjGoodSearchItemDataFromJson(json);
  Map<String, dynamic> toJson() => _$SjGoodSearchItemDataToJson(this);
}
